package game;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;

/**
 * 处理图片工具类
 * @author zl
 */
public class GetPicture {
    public static BufferedImage getImg(String path){
        try {
            BufferedImage img = ImageIO.read(GetPicture.class.getResource(path));
            return img;
        } catch (IOException e) {
            e.printStackTrace();
        }

        return null;
    }
}
